package org.lanqiao.sjx.text;


import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import org.lanqiao.bean.User;
import org.lanqiao.sjx.dao.UserDao;
import org.lanqiao.sjx.dao.impl.UserImpl;

import com.alibaba.druid.sql.visitor.functions.Now;

public class Usertext {
	static UserDao dao=new UserImpl();
	public static void main(String[] args) {
		
		
		SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		String format = df.format(new Date());
		System.out.println(format);	
		dao.updateUser(new User("text", "男", "123456", "123@qq.com", 1, 2, 3, 13));
//		Integer id=2;
//		System.out.println(dao.selectUser(id));
//		new User(id, password, name, sex, email, telphone, workTime, heduBackground, workNtype, state, date, b1, b2, b3, b4)
//		Integer insertUserByEmail = dao.insertUserByEmail(  "2719027323@qq.com","111111");
//		System.out.println( insertUserByEmail );

//		dao.updateUserByEmail(new User("李建军","男","1508772212",1,2,3,format,13));
	List<User> selectALL = dao.selectALL();
	for (User user : selectALL) {
		System.out.println(user);
	}

	
	}


}
